import service from '@/utils/request'
// @Tags IntelligentMaintenance
// @Summary 创建智能保养
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.IntelligentMaintenance true "创建智能保养"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /intelligentMaintenance/createIntelligentMaintenance [post]
export const createIntelligentMaintenance = (data) => {
  return service({
    url: '/intelligentMaintenance/createIntelligentMaintenance',
    method: 'post',
    data
  })
}

// @Tags IntelligentMaintenance
// @Summary 删除智能保养
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.IntelligentMaintenance true "删除智能保养"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /intelligentMaintenance/deleteIntelligentMaintenance [delete]
export const deleteIntelligentMaintenance = (params) => {
  return service({
    url: '/intelligentMaintenance/deleteIntelligentMaintenance',
    method: 'delete',
    params
  })
}

// @Tags IntelligentMaintenance
// @Summary 批量删除智能保养
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除智能保养"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /intelligentMaintenance/deleteIntelligentMaintenance [delete]
export const deleteIntelligentMaintenanceByIds = (params) => {
  return service({
    url: '/intelligentMaintenance/deleteIntelligentMaintenanceByIds',
    method: 'delete',
    params
  })
}

// @Tags IntelligentMaintenance
// @Summary 更新智能保养
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.IntelligentMaintenance true "更新智能保养"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /intelligentMaintenance/updateIntelligentMaintenance [put]
export const updateIntelligentMaintenance = (data) => {
  return service({
    url: '/intelligentMaintenance/updateIntelligentMaintenance',
    method: 'put',
    data
  })
}

// @Tags IntelligentMaintenance
// @Summary 用id查询智能保养
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.IntelligentMaintenance true "用id查询智能保养"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /intelligentMaintenance/findIntelligentMaintenance [get]
export const findIntelligentMaintenance = (params) => {
  return service({
    url: '/intelligentMaintenance/findIntelligentMaintenance',
    method: 'get',
    params
  })
}

// @Tags IntelligentMaintenance
// @Summary 分页获取智能保养列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取智能保养列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /intelligentMaintenance/getIntelligentMaintenanceList [get]
export const getIntelligentMaintenanceList = (params) => {
  return service({
    url: '/intelligentMaintenance/getIntelligentMaintenanceList',
    method: 'get',
    params
  })
}

// @Tags IntelligentMaintenance
// @Summary 不需要鉴权的智能保养接口
// @Accept application/json
// @Produce application/json
// @Param data query intelligent_maintenancesReq.IntelligentMaintenanceSearch true "分页获取智能保养列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /intelligentMaintenance/getIntelligentMaintenancePublic [get]
export const getIntelligentMaintenancePublic = () => {
  return service({
    url: '/intelligentMaintenance/getIntelligentMaintenancePublic',
    method: 'get',
  })
}
